|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.commands.ConversationCommand
org.eclipse.vtp.framework.interactions.core.commands.OutputMessageCommand
public final class OutputMessageCommand
A command that renders output to the user.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.vtp.framework.interactions.core.commands.ConversationCommand |
|---|
INPUT_TYPE_CUSTOM, INPUT_TYPE_FILE, OUTPUT_TYPE_FILE, OUTPUT_TYPE_TEXT |
| Constructor Summary | |
|---|---|
OutputMessageCommand()
Creates a new OutputMessageCommand. |
|
| Method Summary | |
|---|---|
void |
addFileOutput(java.lang.String path)
Adds a file output item to this output message. |
void |
addTextOutput(java.lang.String text)
Adds a text output item to this output message. |
java.lang.Object |
exportContents()
Exports the contents of this command to a simple structure of arrays and serializable values from java.lang. |
int |
getOutputCount()
Returns the number of output elements configured in this output message. |
int |
getOutputType(int outputIndex)
Returns the type of the output at the specified index. |
java.lang.String |
getOutputValue(int outputIndex)
Returns the value of the output at the specified index. |
java.lang.String[] |
getParameterNames()
Returns the names of the parameters that will be returned from the interaction. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the values of a parameter to be set when the process resumes. |
java.lang.String[] |
getPropertyNames()
Returns the names of the properties of the interaction. |
java.lang.String |
getPropertyValue(java.lang.String name)
Returns the value of a property of the interaction. |
void |
importContents(java.lang.Object contents)
Configures the contents of this command with a structure previously returned from ICommand.exportContents(). |
void |
insertFileOutput(int outputIndex,
java.lang.String path)
Adds a file output item to this output message at the specified index. |
void |
insertTextOutput(int outputIndex,
java.lang.String text)
Adds a text output item to this output message at the specified index. |
void |
removeOutput(int outputIndex)
Removes the output item in this output message at the specified index. |
void |
setFileOutput(int outputIndex,
java.lang.String path)
Sets the file output item in this output message at the specified index. |
void |
setParameterValues(java.lang.String name,
java.lang.String[] values)
Configures a parameter set when the current process resumes. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Configures a property of the interaction. |
void |
setTextOutput(int outputIndex,
java.lang.String text)
Sets the text output item in this output message at the specified index. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.commands.ConversationCommand |
|---|
accept |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputMessageCommand()
| Method Detail |
|---|
public java.lang.String[] getPropertyNames()
public java.lang.String getPropertyValue(java.lang.String name)
name - The name of the property to be set.
public void setPropertyValue(java.lang.String name,
java.lang.String value)
name - The name of the property to set.value - The value to set the property to.public int getOutputCount()
public int getOutputType(int outputIndex)
outputIndex - The index to check.
public java.lang.String getOutputValue(int outputIndex)
outputIndex - The index to check.
public void addFileOutput(java.lang.String path)
path - The path of the file to render.public void addTextOutput(java.lang.String text)
text - The text to render.
public void insertFileOutput(int outputIndex,
java.lang.String path)
outputIndex - The index to insert at.path - The path of the file to render.
public void insertTextOutput(int outputIndex,
java.lang.String text)
outputIndex - The index to insert at.text - The text to render.
public void setFileOutput(int outputIndex,
java.lang.String path)
outputIndex - The index to set at.path - The path of the file to render.
public void setTextOutput(int outputIndex,
java.lang.String text)
outputIndex - The index to set at.text - The text to render.public void removeOutput(int outputIndex)
outputIndex - The index to remove at.public java.lang.String[] getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String name)
name - The name of the parameter to be set.
public void setParameterValues(java.lang.String name,
java.lang.String[] values)
name - The name of the parameter to set.values - The values to set the parameter to.public java.lang.Object exportContents()
ICommandjava.lang.
public void importContents(java.lang.Object contents)
ICommandICommand.exportContents().
contents - The exported contents structure to load from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||